package dao;

import java.util.List;

import org.apache.commons.collections.MultiMap;

import model.BaiViet;

public interface BaiVietDAO extends GenericDAO<BaiViet, Long> {
	public List<BaiViet> findAllBaiVietChuDeKhac();

	public List<BaiViet> findAllBaiVietByIdLoaiChuDeKhac(long idLoaiChuDeKhac);

	public List<BaiViet> findByTenChuDeLike(String keyword);

	public List<BaiViet> findByTieuDeLike(String keyword);

	public List<BaiViet> findByNoiDungLike(String keyword);

	public List<BaiViet> findByIdNguoiDangLike(String keyword);

	public List<BaiViet> findByTenNguoiDangLike(String name);

	public List<BaiViet> findByNgayDangLike(String keyword);

	public List<BaiViet> findByOneCondition(String criteria, String keyWord);
	
	public List<BaiViet> findByIdNguoiDang(String idNguoiDang);

	public List<BaiViet> findBaiVietMoi(int soBaiViet);

	public List<BaiViet> findBaiVietXemNhieu(int soBaiViet);

	public List<BaiViet> findBaiVietByIdChuDe(long idChuDe, int soBaiViet);

	public List<BaiViet> findByManyConditions(MultiMap conditions);

	public List<BaiViet> findByKeyword(String keyword);

	public List<BaiViet> findAllBaiVietMoiByLoaiChuDeKhac(String loaiChuDeKhac,
			int soBaiViet);
	
	public List<BaiViet> findAllBaiVietMoiByLoaiChuDeKhac(String loaiChuDeKhac, String nameLike,
			int soBaiViet);
	
	public List<BaiViet> findAllBaiVietMoiByLoaiChuDe(String loaiChuDeKhac);
	
	//Ko có trường 'noiDung' và 'tomTat'
	public List<BaiViet> findAllSimple();

}
